<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变化侦测</title>
</head>
<body>
    
</body>
<script type="module">
    import { Observer } from './变化侦测Observer.js'
    let obj = new Observer({
        name: '张三丰',
        age: 18,
        demo: {
            a: 111,
            b: 'str'
        }
    })

    console.log(obj.value.name)
    obj.value.name = '李四'

    console.log(obj.value.demo.a);
    obj.value.demo.b = '123123'
</script>
</html>